package com.chao.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.ToString;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ToString
@Validated
public class User {

    @NotBlank
    @TableId
    private String uId;
    @NotBlank
    private String username;
    @NotBlank
    private String password;
    @NotNull
    private Integer privilege;

}
